<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>用户新增</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css" th:href="@{https://cdn.staticfile.org/layui/2.7.6/css/layui.css}">
    <script src="../../static/layui/jquery-3.4.1.min.js" th:src="@{https://cdn.bootcss.com/jquery/3.4.1/jquery.js}"></script>
    <script src="../../static/layui/layui.js" th:src="@{https://cdn.staticfile.org/layui/2.7.6/layui.js}"></script>
    <script src="../../static/layer/layer.js" th:src="@{https://cdn.staticfile.org/layer/3.5.1/layer.js}"></script>
</head>
<body>
    <h1>新增用户</h1>
    <form class="layui-form" th:action="@{/user/addUserLayUi}"  th:method="POST">
        <div class="layui-form-item">
                <div class="layui-input-inline">
                       用户名：<input type="text" id="username" name="username" required lay-verify="required" placeholder="请输入用户名"  class="layui-input">
                    </div>
                <div class="layui-input-inline">
                       密码：<input type="password" id="password" name="password" required lay-verify="required" placeholder="请输入密码"  class="layui-input">
                </div>
                <div class="layui-input-inline">
                        昵称：<input type="text" id="nickname" name="nickname" required lay-verify="required" placeholder="请输入昵称"  class="layui-input">
                    </div>
                <div class="layui-input-inline">
                        电话号码：<input type="text" id="phone" name="phone" required lay-verify="required" placeholder="请输入电话号码"  class="layui-input">
                   </div>
            <div>
                角色信息：
                <input type="radio" name="type" value="1" title="采购人">
                <input type="radio" name="type" value="2" title="供应者" checked>
                <input type="radio" name="type" value="3" title="管理员" ><!-- 禁止使用 disabled-->
            </div>
            </div>
        <div class="layui-form-item">
                <div class="layui-input-block">
                      <button class="layui-btn"  lay-submit lay-filter="formDemo">立即提交</button>
                      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
              </div>
    </form>

</body>
</html>